from functools import reduce

# 连续计算, 连续调用lambda
list_x = [1, 2, 3, 4, 5, 6, 7, 8, 9]
value = reduce(lambda x, y: x + y, list_x)
print(value)